package com.by.job;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.Mapping;

import java.util.Date;

/*
 * @Controller:controller层
 * @Service:server层
 * @bean:方法
 * @Component:三层架构之外的类上用
 * */

@Component
public class JobDemo {

    public void printTime() {
        System.out.println("现在时刻：" + new Date());
    }
}
